import request from '@/utils/request'

export function getFileList(paran) {
  return request({
    url: '/File/getFileList',
    method: 'get',
    params: paran
  })
}

export function uploadFile(data) {
  return request({
    url: '/File/uploadFile',
    method: 'post',
    data
  })
}

export function downloadFile(paran) {
  return request({
    url: '/File/downLoad',
    method: 'post',
    params: paran,
    responseType: 'blob'
  })
}

export function close(data) {
  return request({
    url: '/File/close',
    method: 'post',
    data
  })
}

export function clean(data) {
  return request({
    url: `/File/clean`,
    method: 'post',
    data
  })
}
